package com.api.shopapi.service.impl;

import com.api.shopapi.entity.EHobby;
import com.api.shopapi.mapper.EHobbyMapper;
import com.api.shopapi.service.EHobbyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("EHobbyServiceImplOne")
public class EHobbyServiceImpl implements EHobbyService {

    @Autowired
    private EHobbyMapper hobbyMapper;

    @Override
    public int insert(EHobby specialtyHobby) {
        return hobbyMapper.insert(specialtyHobby);
    }

    @Override
    public int delete(String hobbyCode) {
        return hobbyMapper.delete(hobbyCode);
    }

    @Override
    public EHobby getByElderlyCode(String elderlyCode) {
        return hobbyMapper.getByElderlyCode(elderlyCode);
    }
}
